# $Id: PKGBUILD 183192 2013-04-18 16:39:00Z andyrtr $
# Maintainer: AndyRTR <andyrtr@archlinux.org>

pkgname=libwpd
pkgver=0.9.6
pkgrel=1
pkgdesc="Library for importing WordPerfect (tm) documents"
arch=('i686' 'x86_64')
url="http://libwpd.sourceforge.net/"
license=('LGPL')
depends=('gcc-libs' 'zlib')
makedepends=('libgsf>=1.14.26')
options=('!libtool' '!emptydirs')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.xz)
md5sums=('63f476b892bf783072854b98d2fc4fa2')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
